<?php
	echo "<script src=\"includes/js/utility.js\"></script>\n \n";

		
echo "<DIV onclick='event.cancelBubble = true;' class=\"popupLog\" id=\"spotInfo\" onMouseUp=\"captureY('spotInfo');\">\n
		<TABLE width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">\n
		
		<tr>
  <td id=\"titleBar\" style=\"cursor:move; background-color:#999999;\" width=\"100%\" align=\"right\">
  <ilayer width=\"100%\" onSelectStart=\"return false\">

  <layer width=\"100%\" onMouseover=\"isHot=true;if (isN4) ddN4(spotInfo)\" onMouseout=\"isHot=false\">
  <TABLE width=\"100%\"><TR><TD align=\"left\" style=\"font-size:10px; font-weight:600; color:#000000; text-decoration:underline;\">CLICK TO DRAG:</TD> <TD align=\"right\"> <a href=\"#\" onClick=\"hideCurrentPopup();return false\"><font color=\"#000000\" size=\"2\" face=\"arial\"  style=\"text-decoration:none\">X</font></a></TD></TR></TABLE>
  
  </layer>
  </ilayer>

  </td> 

  </tr>
		<FORM action=\"formaction.php\" method=\"post\" name=\"MyPopUp\" id=\"MyPopUp\" >
		<TR><TD align='center'>\n
			<TABLE id='detailsTable'  border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#000000\">\n
				<TR style='padding-top:5px;'>\n
					<TD class=\"popupHeaders\" width=\"15%\">Title:</TD>\n";
					if($browser=='IE'){
						echo"<TD><input name=\"title\" id='title' type=\"text\" size='27'></TD>\n";
					}else{
						echo"<TD><input name=\"title\" id='title' type=\"text\" size='32'></TD>\n";
					}
					
				echo"</TR>\n
				
				<TR><TD class=\"popupHeaders\" width=\"15%\">Source:</TD><TD><input name='Myanchor' type='hidden' value=''>\n\n";
				echo("<select name=\"source\" size=\"1\" >\n");

					if($browser=='IE'){
						echo"<option value=''>-------------------------------------------</option>\n";
					}else{
						echo"<option value=''>-----------------------------------------------</option>\n";
					}
					
				
				for ($i = 0; $i < (count($ProgramSources)/2); $i++) {
					if($ProgramSources[($i + $i)] == 'Local'){
						echo("<option value=\"" . $ProgramSources[($i + $i)] . "\" selected>" . $ProgramSources[($i + $i + 1)] . "</option>\n");
					}else{
						echo("<option value=\"" . $ProgramSources[($i + $i)] . "\">" . $ProgramSources[($i + $i + 1)] . "</option>\n");
					}
				
				}
				echo("</SELECT>\n");
				
				echo"</TD></TR>\n\n
				
				
				
				<TR style='padding-bottom:5px;'><TD class=\"popupHeaders\" width=\"15%\">Type:</TD><TD>\n";
				
				echo("<select name=\"type\" size=\"1\" >\n");
					if($browser=='IE'){
						echo"<option value=''>-------------------------------------------</option>\n";
					}else{
						echo"<option value=''>-----------------------------------------------</option>\n";
					}
					for ($i = 0; $i < (count($ProgramTypes)/2); $i++) {
					if($ProgramTypes[($i + $i)] == 'PSA'){
						echo("<option value=\"" . $ProgramTypes[($i + $i)] . "\" selected>" . $ProgramTypes[($i + $i + 1)] . "</option>\n");
					}else{
						echo("<option value=\"" . $ProgramTypes[($i + $i)] . "\">" . $ProgramTypes[($i + $i + 1)] . "</option>\n");
					}
				}
				echo("</SELECT>\n\n");
				
				echo"</TD></TR>
				
			</TABLE>
		</TD></TR>\n
<script language=\"JavaScript\">
<!--
//Set current days checkbox to checked
currentDay = '".strtolower(date("D",$_SESSION['log_timestamp']))."';
//-->
</script> 
<tr><td><table border='1' cellpadding='0' cellspacing='0' width='100%'><tr> <td align='center' style='font-weight:600; padding-top:5px; font-size:12px;' width='50%'>Recurring: <input name=\"permanent\" type=\"checkbox\" value=\"true\"></td>  <td align='center' style='font-weight:600; padding-top:5px; font-size:12px;' width='50%'>Blank Entry: <input name=\"blank\" type=\"checkbox\" value=\"true\" onClick=\"blankEntry()\"></td></tr>
<tr><TD nowrap colspan='2' align='center' style='font-weight:600; padding-top:5px; font-size:12px;'> m:<INPUT name=\"mon\" type=\"checkbox\" value=\"true\" >&nbsp;&nbsp; t:<INPUT name=\"tue\" type=\"checkbox\" value=\"true\" >&nbsp;&nbsp; w:<INPUT name=\"wed\" type=\"checkbox\" value=\"true\" >&nbsp;&nbsp; th:<INPUT name=\"thu\" type=\"checkbox\" value=\"true\" >&nbsp;&nbsp; f:<INPUT name=\"fri\" type=\"checkbox\" value=\"true\" >&nbsp;&nbsp; s:<INPUT name=\"sat\" type=\"checkbox\" value=\"true\" >&nbsp;&nbsp; su:<INPUT name=\"sun\" type=\"checkbox\" value=\"true\" >&nbsp;				
				</TD></tr>
</table></td></tr>


			<TR>\n";
			echo"<TD align=\"center\" style='padding-top:5px; padding-bottom:10px;'>\n";
			
				//#####################################
				// Form Item - Hour
				//#####################################
				echo "\n<select name=\"hour\" size=\"1\" >\n";
					echo("<option value=\"not_selected\" selected>hour</option>\n"); 
				for ($i = 1; $i < 13; $i++) {
					//$value = str_pad($i, 2, "0", STR_PAD_LEFT);  
					echo("<option value=\"$i\">$i</option>\n"); 
				}
				echo "</select> : \n\n";
				
				
				//#####################################
				// Form Item - Minute
				//#####################################
				echo "\n<select name=\"minute\" size=\"1\" >\n";
					echo("<option value=\"not_selected\" selected>minute</option>\n"); 
				for ($i = 0; $i < 60; $i++) {
					$value = str_pad($i, 2, "0", STR_PAD_LEFT);  
					echo("<option value=\"$value\">$value</option>\n"); 
				}
				echo "</select> : \n\n";
				
				//#####################################
				// Form Item - Seconds
				//#####################################
				echo "\n<select name=\"seconds\" size=\"1\" >\n";
					echo("<option value=\"not_selected\" selected>seconds</option>\n"); 
				for ($i = 0; $i < 60; $i++) {
					$value = str_pad($i, 2, "0", STR_PAD_LEFT);  
					echo("<option value=\"$value\">$value</option>\n"); 
				}
				echo "</select> \n\n";	
				
				//#####################################
				// Form Item - AM / PM
				//#####################################
				echo "\n<select name=\"ampm\" size=\"1\" >\n";
				echo "<option value=\"AM\" selected>AM</option>";
				echo "<option value=\"PM\">PM</option>";
				echo "</select>\n\n";	
										
										
				echo"</TD>\n";
	  echo"</TR>\n
			
			<TR>\n
				<TD align=\"center\" bgcolor=\"#666666\" style='padding-top:5px; padding-bottom:5px;'><input name=\"action\" type=\"hidden\" value=\"quick_add\"><input name=\"update\" type=\"submit\" class=\"inputButton\"  value=\"Quick Add\" >&nbsp; &nbsp; <input name=\"close\" type=\"button\" class=\"inputButton\"  value=\"Close\" onClick=\"hideCurrentPopup()\"></TD>\n
			</TR>\n
			</FORM>
		</TABLE>\n
	</DIV>\n\n";
?>


							